﻿using System;
using System.Security;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.SharePoint.UserCode;

[assembly: AllowPartiallyTrustedCallers()]
namespace SPLinkedInProxy.ProxyCode
{
    [Serializable]
    public class SPLinkedInProxyArgs : SPProxyOperationArgs
    {
        public string txtRequestToken{ get; set; }
        public string txtTokenSecret{ get; set; }
        public string txtoAuth_token{ get; set; }
        public string txtoAuth_verifier{ get; set; }
        public string txtAccessToken{ get; set; }
        public string txtAccessTokenSecret{ get; set; }
        public string txtApiResponse{ get; set; }
        public string txtCommandName { get; set; }
        public string txtErrorMsg { get; set; }

        public string txtProfileStatus { get; set; }

        public string hypAuthToken{ get; set; }

        public string SPLinkedInProxyOpsAssemblyName
        {
            get { return "SPLinkedInProxy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c5b2735a354d31ca"; }
        }
        public string SPLinkedInProxyOpsTypeName
        {
            get { return "SPLinkedInProxy.ProxyCode.SPLinkedInProxyOperation"; }
        }

        public SPLinkedInProxyArgs() { }

        public SPLinkedInProxyArgs(string txtCommandName) 
        {
            this.txtCommandName = txtCommandName;
        }

        public SPLinkedInProxyArgs(string txtCommandName, 
            string txtRequestToken, 
            string txtTokenSecret, 
            string txtoAuth_token, 
            string txtoAuth_verifier, 
            string txtAccessToken, 
            string txtAccessTokenSecret, 
            string txtApiResponse, 
            string hypAuthToken)
        {
            this.txtCommandName = txtCommandName;
            this.txtAccessToken = txtAccessToken;
            this.txtAccessTokenSecret = txtAccessTokenSecret;
            this.txtApiResponse = txtApiResponse;
            this.txtoAuth_token = txtoAuth_token;
            this.txtoAuth_verifier = txtoAuth_verifier;
            this.txtRequestToken = txtRequestToken;
            this.txtTokenSecret = txtTokenSecret;
            this.hypAuthToken = hypAuthToken;
        }
    }
}
